{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="layui-hide" id="test" lay-filter="testReload"></table>

                    <!--操作模板-->
                    <script type="text/html" id="opeBar">
                        <a href="javascript:;" onclick="wk.layer_show('查看物流', '{:url('wuliuInfo')}?express_no={{d.detail_express_no}}')" class="btn btn-warning btn-xs m-r-xs" title="修改物流"><i class="fa fa-edit">查看物流</i></a>
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>
<textarea id="allidsForOut" class="hidden"></textarea>
{include file="public/footer" /}
<script>
    //layui渲染数据表格
    layui.use('table', function () {
        var table = layui.table
            , form = layui.form;
        table.render({
            elem: '#test'
            , url: '{:url("Order/orderWuliu")}'
            , response: {
                statusCode: 220 //成功的状态码，默认：0
            }
            , page: false
            , where: {'order_id':{$order_id},'contract':{$contract}}
            , size: 'lg' //sm小尺寸的表格 lg大尺寸
            , cellMinWidth: 150
            , limits: [5, 10, 15, 20, 25, 30]
            , limit: "{:config('pages')}"
            , loading: true
            , id: 'testReload'
            , cols: [[
                {type: 'checkbox', fixed: 'left',}
                , {type: 'numbers', width: 80, title: '序号'}
                , {field: 'good_name', width: 100, title: '商品名字', align: 'center'}
                , {field: 'goods_info', width: 100, title: '规格', align: 'center'}
//                , {field: 'num', width: '', title: '数量', align: 'center'}
//                , {field: 'unit_price', width: '', title: '价格', align: 'center'}
                , {field: 'detail_express', width: 100, title: '物流公司', align: 'center'}
                , {field: 'detail_express_no', width: '', title: '物流单号', align: 'center'}
                , {field: 'store_code', width: '', title: '仓库编码', align: 'center'}
                , {fixed: 'right', width: 100, title: '操作', align: 'center', toolbar: '#opeBar'}
            ]]
        });

    });
</script>
</body>
</html>